﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using iCooker.NET.Core.DataTransferObjects;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace iCooker.NET.Core.Services.Interfaces
{
    [ServiceContract]
    public interface IRecipeService
    {
        [OperationContract]
        void Add(Recipe recipe);

        [OperationContract]
        void Update(Recipe recipe);

        [OperationContract]
        void Delete(Recipe recipe);

        [OperationContract]
        IQueryable<Recipe> GetAll();

        [OperationContract]
        Recipe GetById(int index);
    }
}
